package btcdemo.btcdemo;

import btcdemo.btcdemo.model.Block;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 启动类
 *
 * @author blues
 */
@SpringBootApplication
public class BtcDemoApplication implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(BtcDemoApplication.class, args);
	}

	@Override
	public void run(String... strings) throws Exception {
		/* 初始化创世区块 */
		Block.initFirstBlock();
	}
}
